Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

{TOKEN:VALIDFROM} / {TOKEN:VALIDUNTIL}

  • ritapas
  • ritapas's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 months 1 week ago - 2 months 1 week ago #256143 by ritapas
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.x-LTS
Own server or LimeSurvey hosting: OWN
Survey theme/template: n/a
==================
Hello,
the manual ( link ) mentions the possibility to use the ={VALIDFROM} or {VALIDUNTIL} or {USESLEFT} variables in a closed survey invitation.
Indeed, those names are not valid in my environment, not in such version nor in the "{TOKEN:VALIDFROM} " version.
Is that a feature which has been added to a more recent version than 3.x-LTS?
Kind regards.
Rita
Last edit: 2 months 1 week ago by ritapas. Reason: added link

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 months 1 week ago #256158 by tpartner
Replied by tpartner on topic {TOKEN:VALIDFROM} / {TOKEN:VALIDUNTIL}
Both formats work for me in invitation mails in version 3.28.57.

Can you attach a copy of the email template?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: ritapas

Please Log in to join the conversation.

  • ritapas
  • ritapas's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 months 1 week ago #256180 by ritapas
Replied by ritapas on topic {TOKEN:VALIDFROM} / {TOKEN:VALIDUNTIL}
Hi,
thank you for your kind reply.
Indeed, our version is still 3.23.5. We plan to switch to LS5 as soon as possible.
However, I made another try and I found out that, though I'd been distracted by the "Validate Expressions", the email message actually contains the desired values.
This is a bit odd but anyway it works.

For reference, this is the HTML mail template text:
Code:
<html>
<head>
    <title></title>
</head>
<body>
<p>Dear {FIRSTNAME},<br /><br />you have been invited to participate in a survey.<br /><br />The survey is titled:<br />"{SURVEYNAME}"<br /><br />"{SURVEYDESCRIPTION}"</p>
 
<p>Token is valid from {VALIDFROM} until {VALIDUNTIL}</p>
 
<p>Uses left: {USESLEFT}</p>
 
<p><br /><br />To participate, please click on the link below.<br /><br />Sincerely,<br /><br />{ADMINNAME} ({ADMINEMAIL})<br /><br />----------------------------------------------<br />Click here to do the survey:<br />{SURVEYURL}<br /><br />If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:<br />{OPTOUTURL}<br /><br />If you are blacklisted but want to participate in this survey and want to receive invitations please click the following link:<br />{OPTINURL}</p>
</body>
</html>

I enclose a screenshot from "Validate Expressions".
 

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 months 1 week ago #256194 by DenisChenu
Replied by DenisChenu on topic {TOKEN:VALIDFROM} / {TOKEN:VALIDUNTIL}
Fixed in last 3.X version if i remind.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: ritapas

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose